package com.jhy.study2;

import com.jhy.study2.exception.MyException1;

public class ExceptionTestor1 {

    public static void main(String[] args)  {

//        throw new MyException1(444,"自定义异常1234");  //这么写需要main方法抛出异常 throws Exception


        try {
            int num = 6/0;
        } catch (Exception e) {
            e.printStackTrace();




        }


    }

}
